Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Internationalize turnstile widget #286

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

alinakuzina
Copy link
Contributor

Turnstile includes a configuration option to set the language. In @nuxtjs/turnstile, a type error arises due to this option not being mentioned in the TurnstileRenderOptions interface. This commit addresses the issue by adding the language property to the TurnstileRenderOptions interface, eliminating the type error. Additionally, language changes switcher in the playground was added.

Enable language customization for the turnstile widget.
Copy link
Collaborator

@dargmuesli dargmuesli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (46ce9ab) 82.60% compared to head (7418b7c) 82.60%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #286   +/-   ##
=======================================
  Coverage   82.60%   82.60%           
=======================================
  Files           2        2           
  Lines         115      115           
  Branches       13       13           
=======================================
  Hits           95       95           
  Misses         20       20           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dargmuesli dargmuesli merged commit 497d7b6 into nuxt-modules:main Nov 15, 2023
5 checks passed
dargmuesli pushed a commit that referenced this pull request Nov 15, 2023
## [0.7.0](v0.6.3...v0.7.0) (2023-11-15)

### Features

* Internationalize turnstile widget ([#286](#286)) ([497d7b6](497d7b6))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants